#pragma once

#include "DD_ImagePro.h"
#include "DD_ImgAnaly.h"
#include "afxcmn.h"
#include "afxwin.h"
#include "resource.h"

// CToolView form view
class CMainFrame;
class CToolView : public CFormView
{
	DECLARE_DYNCREATE(CToolView)

protected:
	CToolView();           // protected constructor used by dynamic creation
	virtual ~CToolView();

public:
	enum { IDD = IDD_TOOL_FORM };
#ifdef _DEBUG
	virtual void AssertValid() const;
#ifndef _WIN32_WCE
	virtual void Dump(CDumpContext& dc) const;
#endif
#endif

public:
	void Initialize();

public:
	CMainFrame *m_pMainFrame;


public:
	DD_ImagePro   m_ImagePro;
	
public:
	void LoadTemplate();
	void LoadPoint();
	
	int m_nPointCount;

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedButtonopen();
	afx_msg void OnBnClickedButtonedge();
	afx_msg void OnBnClickedButtonfindarea();
	virtual void OnInitialUpdate();
	afx_msg void OnBnClickedButtongrade();
	afx_msg void OnBnClickedButtonBinaryimg();
	afx_msg void OnTRBNThumbPosChangingSliderbinaryimg(NMHDR *pNMHDR, LRESULT *pResult);
	CSliderCtrl m_SliderBinaryImg;
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnBnClickedButtonopencheckfile();
	

	afx_msg void OnBnClickedButpt1();
	afx_msg void OnBnClickedButpt2();
	afx_msg void OnBnClickedButpt3();
	afx_msg void OnBnClickedButrt1();
	afx_msg void OnBnClickedButrt2();
	afx_msg void OnBnClickedButrt3();
	afx_msg void OnBnClickedButrtvalid();
	afx_msg void OnBnClickedButSetref();
	CComboBox m_ComboPoints;
	afx_msg void OnBnClickedButtonSettemptype();
	afx_msg void OnBnClickedButtonSavepoint();
	afx_msg void OnCbnSelchangeComboPoints();
	afx_msg void OnBnClickedButtonAddaidimage();
};


